package com.ubb.damate.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/** The persistent class for the user_event database table. */
@Entity
@Table(name = "user_event")
public class UserEvent implements Serializable {
	private static final long	serialVersionUID	= 1L;

	@EmbeddedId
	private UserEventPK			id;

	@Lob()
	@Column(name = "Eventvalue", nullable = false)
	private String				eventvalue;

	//bi-directional many-to-one association to Event
	@ManyToOne
	@JoinColumn(name = "Eventname", nullable = false, insertable = false, updatable = false)
	private Event				event;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name = "Username", nullable = false, insertable = false, updatable = false)
	private User				user;

	public UserEvent() {
	}

	public UserEventPK getId() {
		return this.id;
	}

	public void setId(UserEventPK id) {
		this.id = id;
	}

	public String getEventvalue() {
		return this.eventvalue;
	}

	public void setEventvalue(String eventvalue) {
		this.eventvalue = eventvalue;
	}

	public Event getEvent() {
		return this.event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}